/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package MessageIO;

/**
 * The Socket Constants used are all contains in this interface
 * @author VismonteM
 */
public interface SocketConstants
    {
    /**
    * address for multicast datagrams*/
    public static final String MULTICAST_ADDRESS = "239.0.0.1";

    /**port for listening for multicast datagrams*/
    public static final int MULTICAST_LISTENING_PORT = 5555;
    
    /**port for sending multicast datagrams*/
    public static final int MULTICAST_SENDING_PORT = 5554;

    /**port for Socket connections*/
    public static final int SERVER_PORT = 6666;

    /**String that indicates disconnect*/
    public static final String DISCONNECT_STRING = "DISCONNECT";

    /**String that indicates sending the username*/
    public static final String USERNAME_INDICATOR = "USERNAMEID";

    /**String that the Server uses to say that people have entered the room*/
    public static final String SERVER_ROOM_ENTER = "has entered the chat room.";

    /**String that the Server uses to say that people have lef the room*/
    public static final String SERVER_ROOM_LEFT = "has left the chat room";

    /**String that seperates the user name from the message body*/
    public static final String MESSAGE_SEPERATOR = ":>>";

    /**String that indicates termination of certain client*/
    public static final String TERMINATE_USER = "TERMINATE_USER";

    /**String that indicates new user names being sent to newly connected user*/
    public static final String TO_NEW_USER = "SEND_NEW_USER_NAMES";

    /**message size*/
    public static final int MESSAGE_SIZE = 512;
    }
